
CFLAGS = -Wall -O2 `pkg-config --cflags gtk+-2.0 gmodule-2.0`
CLIBS = -lpthread `pkg-config --libs gtk+-2.0 gmodule-2.0`

OBJECTS = ai.o board.o events.o gui.o main.o stack.o queue.o threads.o editor.o util.o

omringa: $(OBJECTS)
	gcc $(CLIBS) -o omringa $^

%.o: %.c
	gcc $(CFLAGS) -c $^ -o $@

clean:
	rm -f $(OBJECTS)
